-
Notifications
You must be signed in to change notification settings - Fork 1
fix(mcms): make proposalContextProvider a required param of BuildMCMSv2Cmd
#588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mcms): make proposalContextProvider a required param of BuildMCMSv2Cmd
#588
Conversation
🦋 Changeset detectedLatest commit: a839bf7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
7ff9767 to
69a000e
Compare
69a000e to
a839bf7
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR makes the proposalContextProvider parameter mandatory in the BuildMCMSv2Cmd function by adding validation checks and removing conditional logic.
- Added panic checks for nil
lggrandproposalContextProviderparameters - Removed conditional block that allowed
proposalContextProviderto be nil - Simplified code by directly assigning environment and proposal context to config fields
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| engine/cld/legacy/cli/mcmsv2/mcms_v2.go | Added nil checks for required parameters and removed conditional logic for optional proposal context provider |
| .changeset/fruity-kings-cross.md | Added changeset documenting the API change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - [#588](#588) [`d1febae`](d1febae) Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - fix(mcms): make proposalContextProvider a required param of BuildMCMSv2Cmd - [#595](#595) [`95f96d9`](95f96d9) Thanks [@finleydecker](https://github.com/finleydecker)! - Added -eth flag to the evm nodes fund command. Example: users can now use "-eth 10" to fund nodes up to 10 eth. Also added a new line separator to the current balance log to improve readability. - [#594](#594) [`5936b3b`](5936b3b) Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - fix(mcms): improve error handling in confirmTransaction --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>





No description provided.